package com.haier.uos.weather.report.client;

import com.haier.uos.weather.report.vo.City;
import com.haier.uos.weather.report.vo.WeatherResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient("weather-zuul")
public interface ApiClient {
    @GetMapping("/city/city/all")
    List<City> getCityList();
    @GetMapping(value = "/weather/weather/cityId/{cityId}")
    WeatherResponse getWeatherByCityId(@PathVariable("cityId") String cityId);
}
